import { General, Authority } from '../request'

const { post, get } = General

// 评价基础数据添加修改
export const saveOrUpdate = data => post('/form/content/v1/saveOrUpdate', data)
// 获取指定等级的评价选项
export const querySelectListByLevel = params => get('/form/content/v1/querySelectListByLevel',{ params })
// 评价列表
export const queryList = params => get('/form/content/v1/queryList',{ params })


// 边坡风险评估新增
export const sloppeAdd = data => post('/investigate/slope-risk/v1/add', data)


// 新版边坡风险评估新增
export const sloppeAddNew = data => post('/investigate/slope-risk-new/v1/add', data)

// 边坡风险评估计算分数
export const calcOnline = data => post('/investigate/slope-risk/v1/calcOnline', data)
// 边坡风险评估计算分数新编
export const calcOnlineNew = data => post('/investigate/slope-risk-new/v1/calcOnline', data)
//边坡风险评估更新
export const sloppeUpdate = data => post('/investigate/slope-risk/v1/update', data)
// 边坡风险评估更新新版
export const sloppeUpdateNew = data => post('/investigate/slope-risk-new/v1/update', data)
// 边坡风险评估列表查询
export const sloppeList = params => get('/investigate/slope-risk/v1/queryList',{ params })
export const sloppeListNew = params => get('/investigate/slope-risk-new/v1/queryList',{ params })
// 边坡风险评估列表查询详情
export const sloppeDetail = params => get('/investigate/slope-risk/v1/queryById',{ params })
// 边坡风险评估列表查询详情
export const sloppeDetailNew = params => get('/investigate/slope-risk-new/v1/queryById',{ params })
// 边坡日常巡查、经常性排查新增
export const patrolAdd = data => post('/investigate/maintenance-inspection/v1/add', data)
// 边坡日常巡查、经常性排查更新
export const patrolUpdate = data => post('/investigate/maintenance-inspection/v1/update', data)
// 边坡日常巡查、经常性排查列表查询
export const patrolList = params => get('/investigate/maintenance-inspection/v1/queryList',{ params })
// 边坡日常巡查、经常性排查列表查询详情
export const patrolDetail = params => get('/investigate/maintenance-inspection/v1/queryById',{ params })
// 评价模板新增
export const saveOrUpdateTemp = data => post('/form/form/v1/saveOrUpdate', data)
// 模板列表
export const tempQueryList = params => get('/form/form/v1/queryList',{ params })
// 模板内容
export const getTemplateContent = params => get('/form/form/v1/queryInfoByFormType',{ params })


// 风险点排查提交
export const putDamageForm = data => post('/investigate/damage-risk/v1/add', data)
// 风险点排查更新
export const updateDamageForm = data => post('/investigate/damage-risk/v1/update', data)
// 风险点排查列表
export const getDamageFormList = params => get('/investigate/damage-risk/v1/queryList',{ params })
// 风险点排查详情
export const getDamageDetail = params => get('/investigate/damage-risk/v1/queryById',{ params })
// /风险点删除
export const damageDelete = params => post('/investigate/damage-risk/v1/delete', params)

// 技术评定提交
export const putTechnicalForm = data => post('/investigate/slope-technique/v1/add', data)
// 技术评定更新
export const updateTechnicalForm = data => post('/investigate/slope-technique/v1/update', data)
// 技术评定列表
export const getTechnicalFormList = params => get('/investigate/slope-technique/v1/queryList',{ params })
// 技术评定详情
export const getTechnicalDetail = params => get('/investigate/slope-technique/v1/queryById',{ params })

// /技术评定删除
export const technicalDelete = params => post('/investigate/slope-technique/v1/delete', params)


//新版
// 技术评定提交
export const putTechnicalFormNew = data => post('/investigate/slope-technique-new/v1/add', data)

// 技术评定列表
export const getTechnicalFormListNew = params => get('/investigate/slope-technique-new/v1/queryList',{ params })
export const getQueryDownloadSlopeTechniqueList = params => get('/road/slope-info/v1/queryDownloadSlopeTechniqueList',{ params })


// 技术评定选择下拉列表
export const getTechnicalFormSelectListNew = params => get('/investigate/slope-technique-new/v1/querySelectList',{ params })
// 技术评定详情
export const getTechnicalDetailNew = params => get('/investigate/slope-technique-new/v1/queryById',{ params })

// /技术评定删除
export const technicalDeleteNew = params => post('/investigate/slope-technique-new/v1/delete', params)
// 技术评定更新
export const updateTechnicalFormNew = data => post('/investigate/slope-technique-new/v1/update', data)
